//
//  ViewController.swift
//  TCPClientDemo
//
//  Created by adel on 2017/9/20.
//  Copyright © 2017年 adel. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    fileprivate lazy var socket = BLSocket(address: "0.0.0.0", port: 12345)
    override func viewDidLoad() {
        super.viewDidLoad()
    
    }

    override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
        
        if socket.connectServer(){
            print("连接服务端成功")
        }
            
    }

}

